<?echo form_open('home/processAccounts') ?>
<div id="view_students">Unapproved Accounts:
    <ul>
        <li id><a href="#stud_tab">Student</a></li>
        <li id><a href="#inst_tab">Instructor</a></li>
        <li id><a href="#enco_tab">Encoder</a></li>
    </ul>
    <div id="stud_tab">
        <table name="view_students" id="view_students" border="0" cellpadding="0" cellspacing="0">
            <th>Student No.</th>
            <th>Name</th>
            <th>Options</th>
            <? $i=0;
            if ($data->num_rows() > 0){
                foreach ($data->result() as $row) {?>
                <tr><form>
                    <td><center><?=$row->Student_No;?></center></td>
                    <td><center><? echo $row->Last_Name.", ".$row->First_Name." ".$row->Middle_Name;?></center></td>
                    <td><center> Approved<? $i++;
                    $std = $row->Student_No; 
                    $a = 'approved'.$i;
                    $d = 'disapproved'.$i;

                    $data = array(
                        'name' => $a,
                        'value' => $std,
                        'checked' => FALSE
                        );
                    echo form_checkbox($data);
                    echo form_hidden(array('name' => 'i' ,'value' => $i) );
                    ?>
                    </td>
                    <td><center> Disapproved<? 
                    
                    $std = $row->Student_No; 

                    $data = array(
                        'name' => $d,
                        'value' => $std,
                        'checked' => FALSE
                        );
                    echo form_checkbox($data);
                    
                    ?>
                    </td>
                    <td><center><?  ?> 
                </tr>
            <?}}?>
        </table>
    </div>

</div>

<?  echo form_hidden('h',$i);
echo "<br /><br /><br />".form_submit('submit','submit');
?>
<?echo form_close(); ?>